package com.natalia.excel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author yang
 **/
@Data
public class ImportModel {

    /**
     * 名称
     */
    @NotBlank(message = "姓名不能为空")
    @ExcelProperty(value = "名称", index = 0)
    private String name;

    /**
     * 编码
     */
    @ExcelProperty(value = "编码", index = 1)
    private String code;
}